package cn.com.bod.fas.pm.controller;

import cn.com.bod.fas.pm.model.vo.dto.request.CustBaseRequVo;
import cn.com.bod.fas.pm.service.CuCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.com.yusys.yusp.commons.web.rest.dto.ResultDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @description 客户信息Controller
 * @author houyaoxun
 * @date 2019年9月24日
 * @version 1.0.0
 * @Copyright (c) scfhdt
 */
@Api(tags = "客户信息类")
@RestController
@RequestMapping("/api/cu/cucustomer")
public class CuCustomerController {
	@Autowired
	private CuCustomerService cuCustomerService;

	/**
	 * @description getCustNo
	 * @author houyaoxun
	 * @date 2019年9月26日
	 * @param
	 * @return ResultDto<String>
	 */
	@ApiOperation(value = "三要素查询客户号")
	@GetMapping("/getcustno")
	public ResultDto<String> getCustNo(CustBaseRequVo custBaseRequVo) {
		return new ResultDto<>(cuCustomerService.getCustNo(custBaseRequVo));
	}

}
